  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
                 <i class="fa fa-btn fa-plus"></i>
  </button>
  <!-- Modal -->
      <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel">新建项目</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
          <?php echo Form::open(['route'=>'project.index','method'=>'POST','files'=>'true']); ?>

            <div class="modal-body">
                <div class="form-group">
                  <?php echo Form::label('name','项目名称:',['class'=>'control-label']); ?>

                  <?php echo Form::text('name',null,['class'=>'form-control']); ?>

                </div>
                <div class="form-group">
                  <?php echo Form::label('thum','缩略图:',['class'=>'control-label']); ?>

                  <?php echo Form::file('thum'); ?>

                </div>

            </div>
            <div class="modal-footer">
                  <?php echo Form::submit('新建项目',['class'=>'btn btn-primary']); ?>

            </div>
            <?php echo $__env->make('error/errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
          <?php echo Form::close(); ?>

          </div>
          </div>
      </div>